package com.yangjun.common;

import org.apache.commons.lang3.StringUtils;

/*
 * 分页的参数类
 */
public class PageParam {
	
	
	private String pageNum="1";//页码
	private Integer pageSize=10;//每一页的条目数
	private String orderBy;//排序的字符串
	
	public Integer getPageNum() {
		if(StringUtils.isNumeric(pageNum)&&!"0".equals(pageNum)){
			return Integer.valueOf(pageNum);
		}else{
			return 1;
		}
	}
	public void setPageNum(String pageNum) {
		this.pageNum = pageNum;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public String getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
}
